package com.woniu.microcommunityserver.tribal.service.impl;

import com.woniu.microcommunityserver.tribal.entity.InterestTribalInfoEntity;
import com.woniu.microcommunityserver.tribal.mapper.InterestTribalInfoMapper;
import com.woniu.microcommunityserver.tribal.service.InterestTribalInfoService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Service
public class InterestTribalInfoServiceImpl implements InterestTribalInfoService {
    @Resource
    private InterestTribalInfoMapper interestTribalInfoMapper;
    @Override
    public List<InterestTribalInfoEntity> findAll() {
        return interestTribalInfoMapper.findAll();
    }

    @Override
    public List<InterestTribalInfoEntity> findAny(Map<String, Object> map) {
        return interestTribalInfoMapper.findAny(map);
    }

    @Override
    public boolean insertInterest(InterestTribalInfoEntity interestTribalInfoEntity) {
        return interestTribalInfoMapper.insertInterest(interestTribalInfoEntity);
    }

    @Override
    public boolean update(InterestTribalInfoEntity interestTribalInfoEntity) {
        return interestTribalInfoMapper.update(interestTribalInfoEntity);
    }

    @Override
    public boolean updateState(Integer tribalState, Long id) {
        return interestTribalInfoMapper.updateState(tribalState, id);
    }
}
